package com.foreknow.demo4;

import java.util.Scanner;
import java.util.SplittableRandom;

/**
 *  定义一个方法：登录
 */
public class TestMethod3 {
    public static void login(String name,String password) {
        System.out.println(name+"---------"+password);
    }

    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请输入用户名：");
        String name = input.next();
        System.out.println("请输入您的密码：");
        String password = input.next();
        TestMethod3.login(name,password);
    }
}




